<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--引入jstl标签库--%>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/10/20
  Time: 9:53
  To change this template use File | Settings | File Templates.
--%>

<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--JSTL 标签库使用--%>
<%--    c:foreach 标签的使用--%>
<%
    int[] arr = {2, 3, 4, 5, 6};
    request.setAttribute("arr", arr);
%>
<%--遍历数组--%>
<c:forEach items="${arr}" var="a">
    ${a}<br>
</c:forEach>
<br>

</body>
</html>
